<?php
/*
 * 车款页面
 * @package    auto
 * @author     YuNian
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 9b969453166c2fe0f7936fa3f8c371f41ebf2b47 $
 */
defined('IN_IXDCW') or exit('Access Denied');

require_once DT_CORE . "/".MODULE_NAME."/common.inc.php";

// header
$headerPart = 'main';
require_once MD_ROOT . '/header.inc.php';


$carRelation  = AutoCar::relation($carId, 8);
$carAttention = AutoCar::attention($carId, 8);
$carOnsale    = AutoBrand::manusAndCars($brandId, array('tc.issale=1'));

$modelType = $modelInfo['modeltype'];
$fd        = AutoModel::params($modelType);
$fd        = AutoModel::dropParam($fd, 'model_thumb');
$fdGroup   = AutoModel::paramGroup($fd);
$params    = AutoField::values($modelInfo, $fd);

$mainParams = AutoModel::paramsMain($modelType, $params);
$picture = AutoModel::getModelPicture($carId, $modelId);

$needUnset = AutoModel::commercialSpecialNotMatched($modelInfo['acid']);
foreach($fdGroup as $fd => $group) {
	if (in_array($fd, $needUnset)) {
		unset($fdGroup[$fd]);
	}
}
include template('model', $module);